package leetcode.templates.maths.random;

public class MaxRandom {

	// 随机数在[l,r]范围内
	public int random(int l, int r) {
		return (int) (Math.random() * (r - l + 1)) + l;
	}
}
